package idiet.bean;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the nurse_meal_type database table.
 * 
 */
@Entity
@Table(name="nurse_meal_type")
public class NurseMealType implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String comment;

	private String name;

	//bi-directional many-to-one association to CustomerNurseMenu
	@ManyToMany(mappedBy="nurseMealTypes")
	private List<CustomerNurseMeal> customerNurseMeals;

	//bi-directional many-to-one association to CustomerNurseTrace
	@OneToMany(mappedBy="nurseMealType")
	private List<CustomerNurseTrace> customerNurseTraces;

	public NurseMealType() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public List<CustomerNurseMeal> getCustomerNurseMeals() {
		return customerNurseMeals;
	}

	public void setCustomerNurseMeals(List<CustomerNurseMeal> customerNurseMeals) {
		this.customerNurseMeals = customerNurseMeals;
	}

	public List<CustomerNurseTrace> getCustomerNurseTraces() {
		return this.customerNurseTraces;
	}

	public void setCustomerNurseTraces(List<CustomerNurseTrace> customerNurseTraces) {
		this.customerNurseTraces = customerNurseTraces;
	}

}